package com.caseProcess.mapper;

import com.caseProcess.entity.Department;
import com.caseProcess.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author kittlen
 * @version 1.0
 * @date 2020/11/15 9:58
 */
@Repository
public interface DepartmentDao {

    //根据deepth获取部门信息
    List<Department> getDepartments(@Param("deepth") Long deepth);

    int insert(Department department);
    int update(Department department);
    int delete(@Param("departmentId") String departmentId);
    List<Department> selectDepartments();
    Department isExist(@Param("departmentId") String departmentId,@Param("departmentName") String departmentName);
    List<Department> getDepByConditions(@Param("departmentId") String departmentId,@Param("departmentName") String departmentName,@Param("description") String description);
}
